package me.weijing.common.widget;

import me.weijing.common.R;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.view.WindowManager.LayoutParams;

public class ChatDialog extends Dialog {

    public ChatDialog(Context context) {
        super(context);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        LayoutParams params = getWindow().getAttributes();
        params.dimAmount = 0.0f;
        getWindow().setAttributes(params);
        setContentView(R.layout.chat_item_btn);
        super.onCreate(savedInstanceState);
    }
}
